const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    name:{
        type: String,
        require: true
    },
    items:[{
        bannerImg: {
            type: String
        },
        artId: {
            type: mongoose.SchemaTypes.ObjectId,
            ref: 'Artcile'
        }
    }]
})

module.exports = mongoose.model('Ad', schema)